{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/findbuilder.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/feedback.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<script type="text/javascript" src="{$siteroot}/includes/js/jquery-1.7.1.min.js"></script> 
<!--[if IE 7 ]>  <link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/ie7.css">   <![endif]-->
<script type="text/javascript" src="{$siteroot}/includes/js/jquery-ui-1.8.17.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/jquery-ui-1.8.17.custom.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/skin.css" />
<script type="text/javascript" src="{$siteroot}/includes/js/jquery.jcarousel.js"></script>
<!--[if IE 7 ]>  <html class="ie7">   <![endif]-->
{/strip}

{literal}
<script type="text/javascript">
$(document).ready(function(){
	$("#tabs").tabs();
});
	
</script>
<script type="text/javascript">

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel();
});

function testfunction()
{
	if(document.getElementById("all_review").style.display == 'none')
	{
		document.getElementById("all_review").style.display ='block'	
	}
	if(document.getElementById("single_review").style.display == 'block')
	{
		document.getElementById("single_review").style.display ='none'	
	}
		
}
</script>
{/literal}

{include file=$header_end}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
{/strip}
   <!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            {if $msg}{$msg}{/if}
            	<section class="feedback_top">
    	<section class="buil_detl_wrapp" style="border-right:none;">
			<h1>{$user_details.first_name|ucfirst} {$user_details.last_name|ucfirst}   <span>Member since {$user_details.registered_date|date_format:"%d"} {$user_details.registered_date|date_format:"%B"} {$user_details.registered_date|date_format:"%Y"}</span></h1>
        	<section class="loc_box">Location: <span>{$State_array.state_name}</span></section>
            <section class="fs_box">Feedback score:<span>{$user_details.userreviewcount} jobs {if $user_details.positive gt 0}{$user_details.positive}% positive{/if}</span></section>
            
        </section>  
       
        <section class="clear"></section>
    </section>
    
    <section class="trade_searchbody">
  <section class="trade_searchleft">
    <section class="tab_wrapp" id="tabs">
                            <section class="tab_nav" style="margin:0px">
                                <ul>
                                    <li><a href="#profile">Profile</a></li>
                                    <li><a href="#feedback">Feedback</a></li>
                                    <!--<li><a href="#ask">Ask</a></li>-->
                                    <section class="clear"></section>
                                </ul>
                            </section>
                            <section class="fedb_des_wrapp" id="profile">
                            	<section class="pro_detl_wrapp">
                                	<dl>
                                    	<dt>
                                        	<section class="img_box">
                                            {if $user_details.user_avatar}
                                                <img src="{$siteroot}/includes/image.php?width=93&amp;height=93&amp;image={$siteroot}/uploads/user/{$user_details.user_avatar}" title="User Name" alt="User Name"/>
                                            {else}
                                                <img src="{$siteroot}/templates/default/images/upload/featredtrade_img3.jpg" width="93" height="93" title="User Name" alt="User Name" />   
                                             {/if}  
                                            </section>
                                        </dt>
                                        <dd>
                                        	<table>
                                            	<tr>
                                                	<td width="120">First Name: </td>
                                                    <td>{$user_details.first_name}</td>
                                                </tr>
                                            	<tr>
                                                	<td>Last Name: </td>
                                                    <td>{$user_details.last_name}</td>
                                                </tr>
                                                <tr>
                                                	<td>Email : </td>
                                                    <td>{$user_details.email}</td>
                                                </tr>
                                            	<tr>
                                                	<td>Phone: </td>
                                                    <td>{$user_details.phone_number}</td>
                                                </tr>
                                            	<tr>
                                                	<td>Company Name: </td>
                                                    <td>{$user_details.companyname}</td>
                                                </tr>
                                            	<tr>
                                                	<td>Post code : </td>
                                                    <td>{$user_details.postalcode}</td>
                                                </tr>
                                            	<tr>
                                                	<td>State : </td>
                                                    <td>{$user_details.statename}</td>
                                                </tr>
                                            	<tr>
                                                	<td>ABN/ACN : </td>
                                                    <td>{$user_details.abn}/{$user_details.acn}</td>
                                                </tr>

                                            </table>
                                        	
                                        </dd>
                                        <section class="clear"></section>
                                	</dl>
                                </section>
                                {if $user_details.userlastreview_feedback neq ''}
                           		<section class="headingbox margin_none">
                                 <span class="lF hetitle" style="color:#5f5f5f; font-size:18px;">&nbsp;Recent Feedback</span>
                                
                                 <section class="clear"></section>  
                                </section>
    							<div id="single_review" style="display:block;">
   								<section class="trademenu_container">
                                	<section class="feedb_name">{$user_details.userlastreview_job_desc|stripslashes|truncate:"30":""}</section>
                                <section class="topbg">
                                	<section class="cat_box">{$user_details.userlastreview_trade_category}</section>
                                </section>
                                <section class="contain">
                                <section class="containpart">
                                  <section class="maintxt">"{$user_details.userlastreview_feedback|stripslashes|truncate:100:"..."}"</section>
                                  <section class="gray_col" ><span class="bluetext"><img src="{$siteroot}/templates/default/images/men_icon.png" align="absmiddle"/> {$user_details.userlastreview_username}</span>&nbsp;&nbsp; | &nbsp;&nbsp;{$user_details.userlastreview_added_date|date_format:"%d"}{$user_details.userlastreview_added_date_suffix} {$user_details.userlastreview_added_date|date_format:"%B"}, {$user_details.userlastreview_added_date|date_format:"%Y"}&nbsp;&nbsp; <!--| &nbsp;&nbsp;<b class="bluetext">Positive</b>--></section>
                                 </section> 
                                </section>
                                <section class="botbg"></section>
                               </section>
                               {else}
                               		<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no feedback.</div> 
                                {/if}
       							{if $user_details.userreviewcount gt 1}<section class="view_all_wrapp"><a href="javascript:;" onclick="return testfunction();">View all {$user_details.userreviewcount} feedback comments &raquo;</a></section>{/if}
                                </div>
                                <div id="all_review" style="display:none;" >
                                {section name=i loop=$userreviewdetail}
                                
                                <section class="trademenu_container">
                                	<section class="feedb_name">{$userreviewdetail[i].userlastreview_job_desc|stripslashes|truncate:"30":""}</section>
                                <section class="topbg">
                                	<section class="cat_box">{$userreviewdetail[i].userlastreview_trade_category}</section>
                                </section>
                                <section class="contain">
                                <section class="containpart">
                                  <section class="maintxt">"{$userreviewdetail[i].message|stripslashes}"</section>
                                  <section class="gray_col" ><span class="bluetext"><img src="{$siteroot}/templates/default/images/men_icon.png" align="absmiddle"/> {$userreviewdetail[i].first_name} {$userreviewdetail[i].last_name}</span>&nbsp;&nbsp; | &nbsp;&nbsp;{$userreviewdetail[i].added_date|date_format:"%d"}{$userreviewdetail[i].userlastreview_added_date_suffix} {$userreviewdetail[i].added_date|date_format:"%B"}, {$userreviewdetail[i].added_date|date_format:"%Y"}&nbsp;&nbsp; <!--| &nbsp;&nbsp;<b class="bluetext">Positive</b>--></section>
                                 </section> 
                                </section>
                                <section class="botbg"></section>
                               </section>
                               
                               {/section}
                               </div>
                           </section>
                             <section class="fedb_des_wrapp" id="feedback">
                             	{section name=i loop=$userreviewdetail}
                                
                                <section class="trademenu_container">
                                	<section class="feedb_name">{$userreviewdetail[i].userlastreview_job_desc|stripslashes|truncate:"30":""}</section>
                                <section class="topbg">
                                	<section class="cat_box">{$userreviewdetail[i].userlastreview_trade_category}</section>
                                </section>
                                <section class="contain">
                                <section class="containpart">
                                  <section class="maintxt">"{$userreviewdetail[i].message|stripslashes}"</section>
                                  <section class="gray_col" ><span class="bluetext"><img src="{$siteroot}/templates/default/images/men_icon.png" align="absmiddle"/> {$userreviewdetail[i].first_name} {$userreviewdetail[i].last_name}</span>&nbsp;&nbsp; | &nbsp;&nbsp;{$userreviewdetail[i].added_date|date_format:"%d"}{$userreviewdetail[i].userlastreview_added_date_suffix} {$userreviewdetail[i].added_date|date_format:"%B"}, {$userreviewdetail[i].added_date|date_format:"%Y"}&nbsp;&nbsp; <!--| &nbsp;&nbsp;<b class="bluetext">Positive</b>--></section>
                                 </section> 
                                </section>
                                <section class="botbg"></section>
                               </section>
                               {sectionelse}
											<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no feedback.</div>                               		
                               {/section}
                           </section>
<!--                            <section class="fedb_des_wrapp" id="ask">                            
                           </section>-->
            			</section>
                       <!--{if $userworkphotodetail} -->
                            <ul id="mycarousel" class="jcarousel-skin-tango">
                            {section name=i loop=$userworkphotodetail}
                            
                            <li>
                                <section class="slider_img_wrapp">
                                <img src="{$siteroot}/includes/image.php?width=150&amp;height=130&amp;image={$siteroot}/uploads/tradesmanjobs/{$userworkphotodetail[i].image}" title="workphoto" alt="workphoto"/>
                                </section>
                                <section class="slider_txt"><a href="javascript:;">{$userworkphotodetail[i].title|stripslashes|truncate:"50":"..."}</a></section>
                            </li>
                            
                            {/section}
							</ul>
                     <!-- {/if}       -->
  <section>
  
  	<section class="newgray_col">Work History</section>
    <section class="wh_txt_wrapp">{if $user_details.workhistory}{$user_details.workhistory|stripslashes}{else}<span class="error" style="padding-left:200px;">Not added yet.</span>{/if}</section>
    
  
    <section class="newgray_col">Qualifications & Accreditations</section>
    <section class="wh_txt_wrapp">{if $user_details.qual_accred}{$user_details.qual_accred|stripslashes}{else}<span class="error" style="padding-left:200px;">Not added yet.</span>{/if}</section>
    
  </section>
  </section>
  
  <section class="clear"></section>  
 </section>
            	                              
                
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
{include file=$footer}
